package com.game.common.core.domain.model;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 用户注册对象
 *
 * @author ruoyi
 */
@Getter
@Setter
public class RegisterBody extends LoginBody
{
    /**
     * 邮箱
     */
    @Email(message = "邮箱格式不正确")
    @NotBlank
    @Length(max = 50, message = "邮箱长度不能超过50个字符")
    private String email;
}
